package com.lanswon.dao;

import java.util.List;
import java.util.Map;

import org.springframework.data.repository.query.Param;

import com.lanswon.entity.ArticleVO;

public interface ArticleMapper {
    int deleteByPrimaryKey(Long articleId);

    int insert(ArticleVO record);

    int insertSelective(ArticleVO record);

    ArticleVO selectByPrimaryKey(Long articleId);

    int updateByPrimaryKeySelective(ArticleVO record);

    int updateByPrimaryKeyWithBLOBs(ArticleVO record);

    int updateByPrimaryKey(ArticleVO record);

	List<ArticleVO> selectArticlePageList(Map<String, Object> map);

	/**
	 * 前一篇文章
	 */
	ArticleVO selectAheadArticle(Map<String, Object> map);

	/**
	 * 后一篇文章
	 */
	ArticleVO selectAfterArticle(Map<String, Object> map);

	Integer selectArticleCountByCondition(Map<String, Object> map);

	Integer selectArticlePageListCount(Map<String, Object> map);

	List<ArticleVO> selectArticleByCondition(Map<String, Object> accessMap);

	List<ArticleVO> selectLike(String search);
}